// xloctime internal header (from <locale>)
#ifndef _XLOCTIME_
#define _XLOCTIME_
#include <ctime>
#include <xlocnum>
_STD_BEGIN

		// STRUCT time_base
struct _CRTIMP2 time_base
	: public locale::facet
	{	// base class for time_get
	enum dateorder
		{	// constants for different orders of date components
		no_order, dmy, mdy, ymd, ydm};

	time_base(size_t _Refs = 0)
		: locale::facet(_Refs)
		{	// default constructor
		}
	};

		// TEMPLATE CLASS time_get
template<class _Elem,
	class _InIt = istreambuf_iterator<_Elem, char_traits<_Elem> > >
	class time_get
		: public time_base
	{	// facet for converting text to encoded times
public:
	typedef _Elem char_type;
	typedef _InIt iter_type;

	static locale::id id;	// unique facet id

	dateorder date_order() const
		{	// return date order code
		return (do_date_order());
		}

	_InIt get_time(_InIt _First, _InIt _Last,
		ios_base& _Iosbase, ios_base::iostate& _State, tm *_Pt) const
		{	// get time of day from [_First, _Last) into _Pt
		return (do_get_time(_First, _Last, _Iosbase, _State, _Pt));
		}

	_InIt get_date(_InIt _First, _InIt _Last,
		ios_base& _Iosbase, ios_base::iostate& _State, tm *_Pt) const
		{	// get date from [_First, _Last) into _Pt
		return (do_get_date(_First, _Last, _Iosbase, _State, _Pt));
		}

	_InIt get_weekday(_InIt _First, _InIt _Last,
		ios_base& _Iosbase, ios_base::iostate& _State, tm *_Pt) const
		{	// get weekday from [_First, _Last) into _Pt
		return (do_get_weekday(_First, _Last, _Iosbase, _State, _Pt));
		}

	_InIt get_monthname(_InIt _First, _InIt _Last,
		ios_base& _Iosbase, ios_base::iostate& _State, tm *_Pt) const
		{	// get month from [_First, _Last) into _Pt
		return (do_get_monthname(_First, _Last, _Iosbase, _State, _Pt));
		}

	_InIt get_year(_InIt _First, _InIt _Last,
		ios_base& _Iosbase, ios_base::iostate& _State, tm *_Pt) const
		{	// get year from [_First, _Last) into _Pt
		return (do_get_year(_First, _Last, _Iosbase, _State, _Pt));
		}

	explicit time_get(size_t _Refs = 0)
		: time_base(_Refs)
		{	// construct from current locale
		_Init(_Locinfo());
		}

	time_get(const _Locinfo& _Lobj, size_t _Refs = 0)
		: time_base(_Refs)
		{	// construct from specified locale
		_Init(_Lobj);
		}

	static size_t _Getcat(const locale::facet **_Ppf = 0)
		{	// return locale category mask and construct standard facet
		if (_Ppf != 0 && *_Ppf == 0)
			*_Ppf = _NEW_CRT time_get<_Elem, _InIt>;
		return (_X_TIME);
		}

_PROTECTED:
	virtual ~time_get()
		{	// destroy the object
		_Tidy();
		}

protected:
	void _Init(const _Locinfo& _Lobj)
		{	// initialize from _Lobj
		_Cvt = _Lobj._Getcvt();
		_Days = 0;
		_Months = 0;

		_TRY_BEGIN
		_Days = _MAKLOCSTR(_Elem, _Lobj._Getdays(), _Cvt);
		_Months = _MAKLOCSTR(_Elem, _Lobj._Getmonths(), _Cvt);
		_Dateorder = mdy;	// default is month, day, year
		_CATCH_ALL
		_Tidy();
		_RERAISE;
		_CATCH_END
		}

	virtual dateorder do_date_order() const
		{	// return date order code
		return (_Dateorder);
		}

	virtual _InIt do_get_time(_InIt _First, _InIt _Last,
		ios_base&, ios_base::iostate& _State, tm *_Pt) const
		{	// get time of day from [_First, _Last) into _Pt
		_DEBUG_RANGE(_First, _Last);
		_DEBUG_POINTER(_Pt);
		const _Elem _Colon = _MAKLOCCHR(_Elem, ':', _Cvt);

		_State |= _Getint(_First, _Last, 0, 23, _Pt->tm_hour);

		if (_State != ios_base::goodbit || *_First != _Colon)
			_State |= ios_base::failbit;	// hour field is bad
		else
			_State |= _Getint(++_First, _Last, 0, 59, _Pt->tm_min);

		if (_State != ios_base::goodbit || *_First != _Colon)
			_State |= ios_base::failbit;	// min field is bad
		else
			_State |= _Getint(++_First, _Last, 0, 59, _Pt->tm_sec);
		return (_First);
		}

	virtual _InIt do_get_date(_InIt _First, _InIt _Last,
		ios_base& _Iosbase, ios_base::iostate& _State, tm *_Pt) const
		{	// get date from [_First, _Last) into _Pt
		_DEBUG_RANGE(_First, _Last);
		_DEBUG_POINTER(_Pt);
		const _Elem _E0 = _MAKLOCCHR(_Elem, '0', _Cvt);
		const _Elem _Colon = _MAKLOCCHR(_Elem, ':', _Cvt);
		const _Elem _Comma = _MAKLOCCHR(_Elem, ',', _Cvt);
		const _Elem _Slash = _MAKLOCCHR(_Elem, '/', _Cvt);
		const _Elem _Space = _MAKLOCCHR(_Elem, ' ', _Cvt);

		dateorder _Dorder = date_order();
		if (_Dorder == no_order)
			_Dorder = mdy;

		if (*_First < _E0 || _E0 + 9 < *_First)
			{	// begins with month name, assume mdy
			_First = get_monthname(_First, _Last, _Iosbase, _State, _Pt);
			_Dorder = mdy;
			}
		else if (_Dorder == mdy)
			{	// get month number
			_State |= _Getint(_First, _Last, 1, 12, _Pt->tm_mon);
			--_Pt->tm_mon;
			}
		else if (_Dorder == dmy)
			_State |= _Getint(_First, _Last, 1, 31, _Pt->tm_mday);
		else	// ymd or ydm
			_First = get_year(_First, _Last, _Iosbase, _State, _Pt);

		if (_State == ios_base::goodbit)
			{	// skip spaces [:,/] spaces
			while (*_First == _Space)
				++_First;
			if (*_First == _Colon || *_First == _Comma || *_First == _Slash)
				++_First;
			while (*_First == _Space)
				++_First;
			}

		if (_State != ios_base::goodbit)
			;
		else if (*_First < _E0 || _E0 + 9 < *_First)
			if (_Dorder == mdy)
				_State |= ios_base::failbit;	// error, month already seen
			else
				{	// month name is second, like it or not
				_First = get_monthname(_First, _Last, _Iosbase, _State, _Pt);
				if (_Dorder == ydm)
					_Dorder = ymd;
				}
		else if (_Dorder == dmy || _Dorder == ymd)
			{	// get month number
			_State |= _Getint(_First, _Last, 1, 12, _Pt->tm_mon);
			--_Pt->tm_mon;
			}
		else
			_State |= _Getint(_First, _Last, 1, 31, _Pt->tm_mday);

		if (_State == ios_base::goodbit)
			{	// skip spaces [:,/] spaces
			while (*_First == _Space)
				++_First;
			if (*_First == _Colon || *_First == _Comma || *_First == _Slash)
				++_First;
			while (*_First == _Space)
				++_First;
			}

		if (_State != ios_base::goodbit)
			;
		else if (*_First < _E0 || _E0 + 9 < *_First)
			if (_Dorder != ydm)
				_State |= ios_base::failbit;	// error, month out of place
			else
				_First = get_monthname(_First, _Last, _Iosbase, _State, _Pt);
		else if (_Dorder == ydm)
			{	// get month number
			_State |= _Getint(_First, _Last, 1, 12, _Pt->tm_mon);
			--_Pt->tm_mon;
			}
		else if (_Dorder == ymd)
			_State |= _Getint(_First, _Last, 1, 31, _Pt->tm_mday);
		else	// mdy or dmy
			_First = get_year(_First, _Last, _Iosbase, _State, _Pt);

		if (_First == _Last)
			_State |= ios_base::eofbit;
		return (_First);
		}

	virtual _InIt do_get_weekday(_InIt _First, _InIt _Last,
		ios_base&, ios_base::iostate& _State, tm *_Pt) const
		{	// get weekday from [_First, _Last) into _Pt
		_DEBUG_RANGE(_First, _Last);
		_DEBUG_POINTER(_Pt);
		int _Num = _Getloctxt(_First, _Last, (size_t)0, _Days);

		if (_Num < 0)
			_State |= ios_base::failbit;
		else
			_Pt->tm_wday = _Num >> 1;	// set wday
		return (_First);
		}

	virtual _InIt do_get_monthname(_InIt _First, _InIt _Last,
		ios_base&, ios_base::iostate& _State, tm *_Pt) const
		{	// get month from [_First, _Last) into _Pt
		_DEBUG_RANGE(_First, _Last);
		_DEBUG_POINTER(_Pt);
		int _Num = _Getloctxt(_First, _Last, (size_t)0, _Months);

		if (_Num < 0)
			_State |= ios_base::failbit;
		else
			_Pt->tm_mon = _Num >> 1;	// set mon
		return (_First);
		}

	virtual _InIt do_get_year(_InIt _First, _InIt _Last,
		ios_base&, ios_base::iostate& _State, tm *_Pt) const
		{	// get year from [_First, _Last) into _Pt
		_DEBUG_RANGE(_First, _Last);
		_DEBUG_POINTER(_Pt);
		int _Ans = 0;
		_State |= _Getint(_First, _Last, 0, 2035, _Ans);

		if (_State & ios_base::failbit)
			;
		else if (1900 <= _Ans)
			_Ans -= 1900;	// [1900, ...) as is
		else if (_Ans < 69)
			_Ans += 100;	// [0, 69) => [2000, 2069)

		if (!(_State & ios_base::failbit))
			_Pt->tm_year = _Ans;	// set year
		return (_First);
		}

private:
	ios_base::iostate _Getint(_InIt& _First, _InIt& _Last,
		int _Lo, int _Hi, int& _Val) const
		{	// get integer in range [_Lo, _Hi] from [_First, _Last)
		const _Elem _E0 = _MAKLOCCHR(_Elem, '0', _Cvt);
		char _Ac[_MAX_INT_DIG], *_Ep;
		char *_Ptr = _Ac;

		if (_First == _Last)
			;
		else if (*_First == _MAKLOCCHR(_Elem, '+', _Cvt))
			*_Ptr++ = '+', ++_First;	// copy plus sign
		else if (*_First == _MAKLOCCHR(_Elem, '-', _Cvt))
			*_Ptr++ = '-', ++_First;	// copy minus sign

		bool _Seendigit = false;
		while (_First != _Last && *_First == _E0)
			_Seendigit = true, ++_First;	// strip leading zeros
		if (_Seendigit)
			*_Ptr++ = '0';	// replace one or more with single zero

		for (char *const _Pe = &_Ac[_MAX_INT_DIG - 1]; _First != _Last
			&& _E0 <= *_First && *_First <= _E0 + 9;
			_Seendigit = true, ++_First)
			{	// copy digits
			*_Ptr = (char)((*_First - _E0) + '0');
			if (_Ptr < _Pe)
				++_Ptr;	// drop trailing digits if already too large
			}

		if (!_Seendigit)
			_Ptr = _Ac;
		*_Ptr = '\0';
		int _Errno = 0;
		const long _Ans = _CSTD _Stolx(_Ac, &_Ep, 10, &_Errno);
		ios_base::iostate _State = ios_base::goodbit;

		if (_First == _Last)
			_State |= ios_base::eofbit;
		if (_Ep == _Ac || _Errno != 0 || _Ans < _Lo || _Hi < _Ans)
			_State |= ios_base::failbit;	// bad conversion
		else
			_Val = _Ans;	// store valid result
		return (_State);
		}

	void _Tidy()
		{	// free all storage
		delete[] _Days;
		delete[] _Months;
		}

	const _Elem *_Days;	// ":Sun:Sunday:Mon:Monday..." for example
	const _Elem *_Months;	// "Jan:January:Feb:February..." for example
	dateorder _Dateorder;
	_Locinfo::_Cvtvec _Cvt;		// conversion information
	};

		// STATIC time_get::id OBJECT
template<class _Elem,
	class _InIt>
	locale::id time_get<_Elem, _InIt>::id;

		// TEMPLATE CLASS time_get_byname
template<class _Elem,
	class _InIt = istreambuf_iterator<_Elem, char_traits<_Elem> > >
	class time_get_byname
		: public time_get<_Elem, _InIt>
	{	// time_get for named locale
public:
	explicit time_get_byname(const char *_Locname, size_t _Refs = 0)
		: time_get<_Elem, _InIt>(_Locinfo(_Locname), _Refs)
		{	// construct for named locale
		}

_PROTECTED:
	virtual ~time_get_byname()
		{	// destroy the object
		}
	};

		// TEMPLATE CLASS time_put
template<class _Elem,
	class _OutIt = ostreambuf_iterator<_Elem, char_traits<_Elem> > >
	class time_put
		: public locale::facet
	{	// facet for converting encoded times to text
public:
	typedef _Elem char_type;
	typedef _OutIt iter_type;

	_OutIt put(_OutIt _Dest,
		ios_base& _Iosbase, _Elem _Fill, const tm *_Pt,
			const _Elem *_Fmtfirst, const _Elem *_Fmtlast) const
		{	// put formatted time from _Pt to _Dest for [_Fmtfirst, _Fmtlast)
		_DEBUG_POINTER(_Dest);
		_DEBUG_POINTER(_Pt);
		const _Elem _Percent = _MAKLOCCHR(_Elem, '%', _Cvt);

		for (; _Fmtfirst != _Fmtlast; ++_Fmtfirst)
			if (*_Fmtfirst != _Percent)
				*_Dest++ = *_Fmtfirst;	// copy literal element
			else if (++_Fmtfirst == _Fmtlast)
				{	// treat trailing % as %%
				*_Dest++ = _Percent;
				break;
				}
			else
				{	// get specifier after %
				char _Specifier = _MAKLOCBYTE(_Elem, *_Fmtfirst, _Cvt);
				char _Qualifier = '\0';

				if (_Specifier != 'E' && _Specifier != 'O'
					&& _Specifier != 'Q' && _Specifier != '#')
					;	// not [E0Q#] qualifier, treat as specifier
				else if (++_Fmtfirst == _Fmtlast)
					{	// no specifier, copy %[E0Q#] as literal elements
					*_Dest++ = _Percent, *_Dest++ = _Specifier;
					break;
					}
				else
					{	// save both qualifier and specifier
					_Qualifier = _Specifier;
					_Specifier = _MAKLOCBYTE(_Elem, *_Fmtfirst, _Cvt);
					}

				_Dest = do_put(_Dest, _Iosbase, _Fill, _Pt,
					_Specifier, _Qualifier);	// convert a single field
				}
		return (_Dest);
		}

	_OutIt put(_OutIt _Dest, ios_base& _Iosbase, _Elem _Fill, const tm *_Pt,
		char _Specifier, char _Modifier = 0) const
		{	// put formatted time from _Pt to _Dest for _Specifier/_Modifier
		return (do_put(_Dest, _Iosbase, _Fill, _Pt, _Specifier, _Modifier));
		}

	static locale::id id;	// unique facet id

	explicit time_put(size_t _Refs = 0)
		: locale::facet(_Refs)
		{	// construct from current locale
		_Init(_Locinfo());
		}

	time_put(const _Locinfo& _Lobj, size_t _Refs = 0)
		: locale::facet(_Refs)
		{	// construct from specified locale
		_Init(_Lobj);
		}

	static size_t _Getcat(const locale::facet **_Ppf = 0)
		{	// return locale category mask and construct standard facet
		if (_Ppf != 0 && *_Ppf == 0)
			*_Ppf = _NEW_CRT time_put<_Elem, _OutIt>;
		return (_X_TIME);
		}

_PROTECTED:
	virtual ~time_put()
		{	// destroy the object
		}

protected:
	void _Init(const _Locinfo& _Lobj)
		{	// initialize from _Lobj
		_Cvt = _Lobj._Getcvt();
		_Tnames = _Lobj._Gettnames();
		}

	virtual _OutIt do_put(_OutIt _Dest,
		ios_base&, _Elem, const tm *_Pt,
			char _Specifier, char _Modifier = 0) const
		{	// put formatted time from _Pt to _Dest for [_Fmtfirst, _Fmtlast)
		_DEBUG_POINTER(_Dest);
		_DEBUG_POINTER(_Pt);
		char _Fmt[5] = "!%x\0";	// '!' for nonzero count, null for modifier
		size_t _Count, _Num;
		string _Str;

		if (_Modifier == (_Elem)0)
			_Fmt[2] = _Specifier;
		else
			_Fmt[2] = _Modifier, _Fmt[3] = _Specifier;

		for (_Num = 16; ; _Num *= 2)
			{	// convert into ever larger string buffer until success
			_Str.append(_Num, '\0');
			if (0 < (_Count = _Strftime(&*_Str.begin(), _Str.size(),
				_Fmt, _Pt, _Tnames._Getptr())))
				break;
			}

		for (string::const_iterator _Snext = _Str.begin();
			0 < --_Count; ++_Dest)	// skip literal '!'
			*_Dest = _MAKLOCCHR(_Elem, *++_Snext, _Cvt);
		return (_Dest);
		}

private:
	_Locinfo::_Timevec _Tnames;	// locale-specific stuff for _Strftime
	_Locinfo::_Cvtvec _Cvt;		// conversion information
	};

		// STATIC time_put::id OBJECT
template<class _Elem,
	class _OutIt>
	locale::id time_put<_Elem, _OutIt>::id;

		// CLASS time_put<wchar_t>
template<class _OutIt>
	class _CRTIMP2 time_put<wchar_t, _OutIt>
		: public locale::facet
	{	// facet for converting encoded times to wchar_t text
public:
	typedef wchar_t _Elem;
	typedef _Elem char_type;
	typedef _OutIt iter_type;

	_OutIt put(_OutIt _Dest,
		ios_base& _Iosbase, _Elem _Fill, const tm *_Pt,
			const _Elem *_Fmtfirst, const _Elem *_Fmtlast) const
		{	// put formatted time from _Pt to _Dest for [_Fmtfirst, _Fmtlast)
		_DEBUG_POINTER(_Dest);
		_DEBUG_POINTER(_Pt);
		const _Elem _Percent = _MAKLOCCHR(_Elem, '%', _Cvt);

		for (; _Fmtfirst != _Fmtlast; ++_Fmtfirst)
			if (*_Fmtfirst != _Percent)
				*_Dest++ = *_Fmtfirst;	// copy literal element
			else if (++_Fmtfirst == _Fmtlast)
				{	// treat trailing % as %%
				*_Dest++ = _Percent;
				break;
				}
			else
				{	// get specifier after %
				char _Specifier = _MAKLOCBYTE(_Elem, *_Fmtfirst, _Cvt);
				char _Qualifier = '\0';

				if (_Specifier != 'E' && _Specifier != 'O'
					&& _Specifier != 'Q' && _Specifier != '#')
					;	// not [E0Q#] qualifier, treat as specifier
				else if (++_Fmtfirst == _Fmtlast)
					{	// no specifier, copy %[E0Q#] as literal elements
					*_Dest++ = _Percent, *_Dest++ = _Specifier;
					break;
					}
				else
					{	// save both qualifier and specifier
					_Qualifier = _Specifier;
					_Specifier = _MAKLOCBYTE(_Elem, *_Fmtfirst, _Cvt);
					}

				_Dest = do_put(_Dest, _Iosbase, _Fill, _Pt,
					_Specifier, _Qualifier);	// convert a single field
				}
		return (_Dest);
		}

	_OutIt put(_OutIt _Dest, ios_base& _Iosbase, _Elem _Fill, const tm *_Pt,
		char _Specifier, char _Modifier = 0) const
		{	// put formatted time from _Pt to _Dest for _Specifier/_Modifier
		return (do_put(_Dest, _Iosbase, _Fill, _Pt, _Specifier, _Modifier));
		}

	static locale::id id;	// unique facet id

	explicit time_put(size_t _Refs = 0)
		: locale::facet(_Refs)
		{	// construct from current locale
		_Init(_Locinfo());
		}

	time_put(const _Locinfo& _Lobj, size_t _Refs = 0)
		: locale::facet(_Refs)
		{	// construct from specified locale
		_Init(_Lobj);
		}

	static size_t _Getcat(const locale::facet **_Ppf = 0)
		{	// return locale category mask and construct standard facet
		if (_Ppf != 0 && *_Ppf == 0)
			*_Ppf = _NEW_CRT time_put<_Elem, _OutIt>;
		return (_X_TIME);
		}

_PROTECTED:
	virtual ~time_put()
		{	// destroy the object
		}

protected:
	void _Init(const _Locinfo& _Lobj)
		{	// initialize from _Lobj
		_Cvt = _Lobj._Getcvt();
		_Tnames = _Lobj._Gettnames();
		}

	virtual _OutIt do_put(_OutIt _Dest,
		ios_base&, _Elem, const tm *_Pt,
			char _Specifier, char _Modifier = 0) const
		{	// put formatted time from _Pt to _Dest for [_Fmtfirst, _Fmtlast)
		_DEBUG_POINTER(_Dest);
		_DEBUG_POINTER(_Pt);
		char _Fmt[5] = "!%x\0";	// '!' for nonzero count, null for modifier
		size_t _Count, _Num;
		string _Str;

		if (_Modifier == (_Elem)0)
			_Fmt[2] = _Specifier;
		else
			_Fmt[2] = _Modifier, _Fmt[3] = _Specifier;

		for (_Num = 16; ; _Num *= 2)
			{	// convert into ever larger string buffer until success
			_Str.append(_Num, '\0');
			if (0 < (_Count = _Strftime(&*_Str.begin(), _Str.size(),
				_Fmt, _Pt, _Tnames._Getptr())))
				break;
			}

		int _Bytes;
		_Mbstinit(_Mbst);
		wchar_t _Wc;
		--_Count;	// skip '!'
		for (string::const_iterator _Snext = _Str.begin() + 1; 0 < _Count;
			_Count -= _Bytes, _Snext += _Bytes, *_Dest++ = _Wc)
			switch (_Bytes = _Mbrtowc(&_Wc, &*_Snext, _Count, &_Mbst, &_Cvt))
				{	// convert a wchar_t
			case -2:	// partial conversion
			case -1:	// failed conversion
				return (_Dest);

			case 0:	// may have converted null character
				if (_Wc == L'\0')
					_Bytes = (int)_CSTD strlen(&*_Snext) + 1;
				}
		return (_Dest);
		}

private:
	_Locinfo::_Timevec _Tnames;	// locale-specific stuff for _Strftime
	_Locinfo::_Cvtvec _Cvt;		// conversion information
	};


 #if __EDG__	/* compiler test */
		// STATIC time_put<wchar_t>::id OBJECT
template<>
	locale::id time_put<wchar_t,
		ostreambuf_iterator<wchar_t, char_traits<wchar_t> > >::id;
 #endif /* __EDG__ */

		// TEMPLATE CLASS time_put_byname
template<class _Elem,
	class _OutIt = ostreambuf_iterator<_Elem, char_traits<_Elem> > >
	class time_put_byname
		: public time_put<_Elem, _OutIt>
	{	// time_put for named locale
public:
	explicit time_put_byname(const char *_Locname, size_t _Refs = 0)
		: time_put<_Elem, _OutIt>(_Locinfo(_Locname), _Refs)
		{	// construct for named locale
		}

_PROTECTED:
	virtual ~time_put_byname()
		{	// destroy the object
		}
	};

 #ifdef  _DLL

  #ifdef __FORCE_INSTANCE
template class _CRTIMP2 time_get<char,
	istreambuf_iterator<char, char_traits<char> > >;
template class _CRTIMP2 time_put<char,
	ostreambuf_iterator<char, char_traits<char> > >;

template class _CRTIMP2 time_get<wchar_t,
	istreambuf_iterator<wchar_t, char_traits<wchar_t> > >;

 #if 1310 <= _MSC_VER
  #pragma warning(disable:4661) /* time_put<wchar_t>::id in wlocale.cpp */
template class _CRTIMP2 time_put<wchar_t,
	ostreambuf_iterator<wchar_t, char_traits<wchar_t> > >;
//  #pragma warning(default:4661) /* restore previous warning */
 #endif /* 1310 <= _MSC_VER */

   #ifdef _CRTBLD_NATIVE_WCHAR_T
template class _CRTIMP2 time_get<unsigned short,
	istreambuf_iterator<unsigned short, char_traits<unsigned short> > >;
template class _CRTIMP2 time_put<unsigned short,
	ostreambuf_iterator<unsigned short, char_traits<unsigned short> > >;
   #endif /* _CRTBLD_NATIVE_WCHAR_T */

  #else /* __FORCE_INSTANCE */
_CRTEXT template class _CRTIMP2 time_get<char,
	istreambuf_iterator<char, char_traits<char> > >;
_CRTEXT template class _CRTIMP2 time_put<char,
	ostreambuf_iterator<char, char_traits<char> > >;

_CRTEXT template class _CRTIMP2 time_get<wchar_t,
	istreambuf_iterator<wchar_t, char_traits<wchar_t> > >;

 #if 1310 <= _MSC_VER
  #pragma warning(disable:4661) /* time_put<wchar_t>::id in wlocale.cpp */
_CRTEXT template class _CRTIMP2 time_put<wchar_t,
	ostreambuf_iterator<wchar_t, char_traits<wchar_t> > >;
//  #pragma warning(default:4661) /* restore previous warning */
 #endif /* 1310 <= _MSC_VER */

  #endif /* __FORCE_INSTANCE */
 #endif /* _DLL */

_STD_END
#endif /* _XLOCTIME_ */

/*
 * Copyright (c) 1992-2003 by P.J. Plauger.  ALL RIGHTS RESERVED.
 * Consult your license regarding permissions and restrictions.
V4.02:1422 */
